load("//zip-archive:rule.bzl", "zip_archive")

zip_archive(
    name         = "zip_archive",
    files        = ['main', 'README.md'],
    archive_file = "ctacc.tar.gz",
)

# bazel为我们提供了简单的打包的方式
# bazel build //zip-archive:archive_project
genrule(
    name  = "archive_project",
    srcs  = ['main','README.md'],
    outs  = ['app.tar.gz'],
    cmd   = "zip $(OUTS) $(SRCS)"
)